package com.purchase.ml.entity.dealer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dealer_pruduct")
@ApiModel(value = "SysDealerPruduct", description = "经销商产品表")
public class SysDealerPruduct implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;

    /**
     * 目录ID
     */
    @TableField(value = "product_id")
    @ApiModelProperty(value = "目录ID")
    private Long productId;

    /**
     * 状态：开始是查询全部的：如果商户禁用了某个目录；就将该目录从查询到的数据中去掉
     */
    @TableField(value = "state")
    @ApiModelProperty(value = "状态：开始是查询全部的：如果商户禁用了某个目录；就将该目录从查询到的数据中去掉")
    private Integer state;

    /**
     * 经销商ID
     */
    @TableField(value = "dealer_id")
    @ApiModelProperty(value = "经销商ID")
    private Long dealerId;

    @TableField(value = "stock")
    @ApiModelProperty(value = "商品库存")
    private Integer stock;

    @TableField(value = "delivery_day")
    @ApiModelProperty(value = "出货天数")
    private Integer deliveryDay;

    @TableField(value = "moq")
    @ApiModelProperty(value = "最小起量")
    private Integer moq;

    private static final long serialVersionUID = 1L;
}